package com.qili.entity.supervisor;

import com.qili.annotation.Mean;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.stereotype.Component;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by lenovo on 2020/11/4.
 * 分包表
 *
 */
@Table(name = "project_packge")
@Data
@ToString
@EqualsAndHashCode
@Component
public class ProjectContract {

    /*
    * 主键id
    * */
    @Id
    @Column(name = "id")
    private String id;

    /*
    * 主项目id 外键
    * */
    @Column(name = "project_id")
    private String projectId;

    /*
    * 分包编号
    * */
    @Mean(value = "分包编号")
    @Column(name = "code")
    private String code;

    /*
    * 创建人
    * */
    @Column(name = "create_user")
    private String createUser;

    /*
    * 创建时间
    * */
    @Column(name = "create_date")
    private Date createDate;

    /*
     *  序号
     * */
    @Column(name = "order_num")
    private Integer orderNum;

    /**
     * 完成状态  0 未开始  1 进行中  2  已完成   3   已超时
     */
    @Column(name = "finish_status")
    private String finishStatus;

    /**
     * 子阶段进行到第几步
     */
    @Column(name = "step_num")
    private String stepNum;

}
